﻿<Window x:Class="Rezervace.AddProduct"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib"
        xmlns:userTextBox2="clr-namespace:AddProductLib.UserTextBox;assembly=AddProductLib" x:Name="Okno"
        Title="Přidat zboží" Height="493" Width="500" WindowStartupLocation="CenterScreen" Loaded="Okno_Loaded" Closing="Okno_Closing"
        >
    <Window.Resources>
        
        <DataTemplate x:Key="MujListBox">
            <StackPanel Margin="3">
                <DockPanel>
                    <TextBlock Text="{Binding Jmeno}"
                               DockPanel.Dock="Left" 
                               Foreground="Green" 
                               FontWeight="Bold"
                               Margin="5,0,10,0"/>
                </DockPanel>
                <DockPanel >
                    <TextBlock Text="{Binding OdKdy}" DockPanel.Dock="Left" Margin="20,0,5,0"/>
                </DockPanel>
                <DockPanel >
                    <TextBlock Text="{Binding DoKdy}" DockPanel.Dock="Left" Margin="20,0,5,0"/>
                </DockPanel>
            </StackPanel>
        </DataTemplate>
        
    </Window.Resources>
    <Grid Margin="0,0,2,52" Background="#FFF1F1F1">
        <Image HorizontalAlignment="Left" Height="39" Margin="10,14,0,0" VerticalAlignment="Top" Width="63" Source="Obrazky/ski.png" Grid.Column="0"/>
        <GroupBox Header="Nastavení" HorizontalAlignment="Left" Margin="10,138,0,0" VerticalAlignment="Top" Height="262" Width="470" Foreground="#FF226E91" FontWeight="Bold" FontSize="14" BorderBrush="#FF226E91"/>
        <GroupBox Header="Informace" HorizontalAlignment="Left" Margin="50,0,0,0" VerticalAlignment="Top" Height="126" Width="430" Foreground="#FF226E91" FontWeight="Bold" FontSize="14" BorderBrush="#FF226E91"/>
        <userTextBox2:userTextBox x:Name="tb_Nazev"  HorizontalAlignment="Left" Height="23" VerticalAlignment="Top" Width="173" Margin="194,58,0,0" LostFocus="tb_Nazev_LostFocus" Focusable="True" />

        <Label x:Name="lb_DatumVraceni" Content="datum" HorizontalAlignment="Left" Margin="289,196,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.759,0.385" FontWeight="Bold" Foreground="#FFFF2300"/>
        <Calendar x:Name="MujKalendar" HorizontalAlignment="Left" Margin="289,227,0,0" VerticalAlignment="Top" SelectionMode="MultipleRange" TabIndex="6" SelectedDatesChanged="MujKalendar_SelectedDatesChanged"/>
        <Label Content="Název:" HorizontalAlignment="Left" Margin="144,55,0,0" VerticalAlignment="Top"/>
        <TextBox x:Name="tb_PocetDni" HorizontalAlignment="Left" Height="23" Margin="132,233,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="54" RenderTransformOrigin="0.542,0.174" FontSize="14" TabIndex="4" TextChanged="tb_PocetDni_TextChanged" PreviewTextInput="tb_PocetDni_PreviewTextInput" LostFocus="tb_PocetDni_LostFocus"/>
        <Label Content="Od dne:" HorizontalAlignment="Left" Margin="37,164,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold"/>
        <DatePicker x:Name="date_OdDne" HorizontalAlignment="Left" Margin="37,198,0,0" VerticalAlignment="Top" Width="179" SelectedDate="{x:Static system:DateTime.Now}" FontWeight="Bold" Foreground="#FFFF2300" FirstDayOfWeek="Monday" SelectedDateFormat="Long" TabIndex="3" SelectedDateChanged="date_OdDne_SelectedDateChanged"/>
        <Label Content="Na dobu:" HorizontalAlignment="Left" Margin="68,230,0,0" VerticalAlignment="Top"/>
        <Label Content="Čárový kód:" HorizontalAlignment="Left" Margin="117,27,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.978,-1.192"/>
        <TextBox x:Name="tb_CarovyKod" HorizontalAlignment="Left" Height="23" Margin="194,30,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="173" Background="#FFEEE0E0" FontStyle="Italic" FontWeight="Bold" TabIndex="1313213" LostFocus="tb_CarovyKod_LostFocus" PreviewTextInput="tb_CarovyKod_PreviewTextInput" GotFocus="tb_CarovyKod_GotFocus"/>
        
        <Label Content="dní" HorizontalAlignment="Left" Margin="191,230,0,0" VerticalAlignment="Top" Width="36"/>
        <Label Content="Ke dni:" HorizontalAlignment="Left" Margin="289,164,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.759,0.385" FontSize="14" FontWeight="Bold"/>
        
        <Image HorizontalAlignment="Left" Height="39" Margin="10,14,0,0" VerticalAlignment="Top" Width="63" Source="Obrazky/ski.png" Grid.Column="0"/>
        <Button x:Name="bt_Storno" Content="Storno" HorizontalAlignment="Left" Height="27" Margin="393,415,0,-50" VerticalAlignment="Top" Width="75" TabIndex="8" Click="bt_Storno_Click"/>
        <Button x:Name="bt_Pridat" Content="Potrvdit" HorizontalAlignment="Left" Height="27" Margin="289,415,0,-50" VerticalAlignment="Top" Width="90" FontWeight="Bold" FontSize="14" RenderTransformOrigin="0.289,0.407" TabIndex="7" Click="bt_Pridat_Click"/>
        <Label x:Name="lb_Stav" Content="Stav:" HorizontalAlignment="Left" Margin="154,86,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.971,0.385"/>
        <Label x:Name="lb_StatusZbozi" Content="neznámý" HorizontalAlignment="Left" Margin="191,86,0,0" VerticalAlignment="Top" FontWeight="Bold"/>

        <Expander x:Name="MujExpander" Header="Přehled termínů" HorizontalAlignment="Left" Margin="280,88,0,0" VerticalAlignment="Top" Width="200" Height="168">
            <Grid Background="Cornsilk">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="10*"/>
                    <ColumnDefinition Width="51*"/>
                    <ColumnDefinition Width="137*"/>
                </Grid.ColumnDefinitions>
                <ListBox x:Name="list_Prehled" HorizontalAlignment="Left" Height="142" Margin="0,3,0,0" VerticalAlignment="Top" Width="198"
        			ItemTemplate="{StaticResource MujListBox}" Grid.ColumnSpan="3"/>
            </Grid>
        </Expander>
    </Grid>
</Window>

